﻿using System;
using System.Collections.Generic;
using System.Text;
using Qreed.Diagnostics;

namespace Qreed.Windows.Forms
{
    /// <summary>
    /// Event arguments when the logger has been changed.
    /// </summary>
    public class LoggerChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="LoggerChangedEventArgs"/> class.
        /// </summary>
        /// <param name="oldLogger">The old logger.</param>
        /// <param name="newLogger">The new logger.</param>
        internal LoggerChangedEventArgs(BaseLogger oldLogger, BaseLogger newLogger)
        {
            _oldLogger = oldLogger;
            _newLogger = newLogger;
        }

        private BaseLogger _oldLogger;
        /// <summary>
        /// Gets the old logger.
        /// </summary>
        /// <value>The old logger.</value>
        public BaseLogger OldLogger
        {
            get { return this._oldLogger; }
        }

        private BaseLogger _newLogger;
        /// <summary>
        /// Gets the new logger.
        /// </summary>
        /// <value>The new logger.</value>
        public BaseLogger NewLogger
        {
            get { return this._newLogger; }            
        }	
    }
}
